home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 48
/
Amiga Format CD48 (1999-12-13)(Future Publishing)(GB)(Track 1 of 2)[!][issue 2000-01].iso
/
-in_the_mag-
/
networking
/
crosspc
/
parpc04
/
packet
/
utils
/
utils.doc
< prev
Wrap
Text File
|
1993-04-01
|
6KB
|
140 lines
Utility Programs
There are also several utility programs for packet
drivers:
PKTADDR
usage: pktaddr packet_int_no [ethernet_addr]
If the second argument is given, the Ethernet address of
the given packet driver is set. The Ethernet address is printed
out.
PKTALL
usage: pktall packet_int_no
All packets are received and discarded from the given
packet driver. This program is of most use with PKTMODE and
TRACE.
PKTCHK
usage: pktchk packet_int_no [packet_int_no]
Test for existance of a packet driver. Returns with
errorlevel 0 if the specified interrupt has a packet driver. If
the second argument is given, all interrupts in the range are
checked for a packet driver. If no packet driver is found at
all, errorlevel 1 is returned.
PKTSTAT
usage: pktstat first_int_no [last_int_no]
The statistics for all packet drivers in the given range
are printed. The default range is 0x60 through 0x80. The
meanings of the columns are given below.
pkt_in is the number of packets ever received by this driver.
pkt_out is the number of packets ever transmitted by this
driver.
byt_in is the number of bytes ever received by this driver.
byt_out is the number of bytes ever transmitted by this driver.
pk_drop Packets dropped because there was no handler for that
Ethernet packet type.
err_in Dependent upon the packet driver.
err_out Dependent upon the packet driver.
PKTSEND
usage: pktsend packet_int_no [-r] [-f filename | packet]
The specified packet is sent using the specified packet
driver. The -r option says to repeat sending as fast as
possible. You shouldn't use this option very often. The packet
may either be specified on the command line, or in a file using
the -f option. When a file is used, any whitespace in the file
is ignored.
PKTTRAF
usage: pkttraf packet_int_no
Graphically display traffic on an EGA or VGA screen. The
first twenty Ethernet addresses encountered are assigned a node
number. The traffic between each pair of nodes is displayed as a
line of varying intensity. When any line reaches maximum
intensity, the intensities of all lines are halved.
A cursor highlights one of the nodes. The Ethernet
address of the highlighted node is printed in the lower-right
corner. The cursor is moved using space and backspace.
TERMIN
usage: termin [-s] packet_int_no
The specified packet driver is terminated, and its memory
recovered.
The s-option (stop) is used to prepare for termination.
The in-use flag for all handles are cleared. This prevents
upcalls to handlers that are to be removed and also makes it
possible to later terminate the packet driver even though
handles are not released. Actually, doing termin -s after prom
boot is like cutting the branch you are sitting on. Recipe for
removing packet driver, IPX and NET:
pktdrvr 0x7c ....
MARKNET C:IPX&NET3.MRK
PDIPX
NET3
. . .
NET3 u ; unload netx to avoid
communication timeout
TERMIN -s 0x7c ; pkt drvr no longer calls any
nonexistent rcvrs
RELNET ipxet3.mrk ; IPX is "removed"
TERMIN 0x7c ; It is now safe to terminate the
packet driver
TRACE
usage: trace packet_int_no [buffer_size]
Trace is very useful for debugging packet driver
troubles. Trace lets you trace all transactions between a user
program and the packet driver. The transactions are stored in a
memory buffer whose size is set with buffer_size. The default
size is 10,000 bytes.
When you run trace, it sets itself up and then spawns
COMMAND.COM so that you can run a network program that uses the
packet driver. After you quit your network session, you issue
an "EXIT" command. This returns you to trace, which writes the
transaction log to "TRACE.OUT". The following program, DUMP,
interprets TRACE.OUT.
DUMP
usage: dump
Interprets the contents of TRACE.OUT as written by TRACE.